package com.qunar.support.util;

import java.util.HashMap;

import javax.servlet.http.HttpSession;

/**
 * 单用户在线管理
 * @author jinye.liu
 *
 */
public class SingleUserManager {
	private static HashMap<Integer, HttpSession> map;
	static{
		map=new HashMap<Integer, HttpSession>();
	}
	public static HttpSession getSession(int uid){
		return map.get(uid);
	}
	public static void putSession(int uid,HttpSession session){
		map.put(uid, session);
	}
}
